From: Carlos Garnacho Date: Thu, 11 Feb 2021 23:20:31 +0000 (+0100) Subject: overviewControls: Add "gesture-in-progress" property on the state adjustment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~308 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ddb8782179794a8a7f2a0ac13700bf165094ec20;p=gnome-shell.git overviewControls: Add "gesture-in-progress" property on the state adjustment This will be set whenever an event controller is manipulating the adjustment. It should enter the same transitional state it does for animations. This will be used by the overview gesture. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 32388621e..f43d8e236 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -195,8 +195,14 @@ class ControlsManagerLayout extends Clutter.BoxLayout { } }); -var OverviewAdjustment = GObject.registerClass( -class OverviewAdjustment extends St.Adjustment { +var OverviewAdjustment = GObject.registerClass({ + Properties: { + 'gesture-in-progress': GObject.ParamSpec.boolean( + 'gesture-in-progress', 'Gesture in progress', 'Gesture in progress', + GObject.ParamFlags.READWRITE, + false), + }, +}, class OverviewAdjustment extends St.Adjustment { _init(actor) { super._init({ actor, @@ -231,7 +237,7 @@ class OverviewAdjustment extends St.Adjustment { : 1; return { - transitioning: transition !== null, + transitioning: transition !== null || this.gestureInProgress, currentState, initialState, finalState,